package cn.hongwei.mall.search.feign;

import cn.hongwei.mall.common.bean.PageParamVo;
import cn.hongwei.mall.common.bean.ResponseVo;
import cn.hongwei.mall.pms.api.MallPmsApi;
import cn.hongwei.mall.pms.entity.SpuEntity;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author Great
 * @email 1224028994@qq.com
 */
@FeignClient("pms-service")
public interface MallPmsClient extends MallPmsApi {
    @ApiOperation("分页查询spu，search工程需要调用的接口")
    @GetMapping("pms/spu/listPage")
    ResponseVo<List<SpuEntity>> listPage(@SpringQueryMap PageParamVo pageParamVo);
}
